//// http://www.elandroidelibre.com/2010/08/aprendiendo-android-v-inicializacion-a-la-api-del-gps.html
//// http://developer.android.com/guide/topics/location/obtaining-user-location.html
//
//package com.mamlambo.sample.ndk1;
//
//import android.R;
//import android.app.Activity;
//import android.content.Context;
//import android.location.Location;
//import android.location.LocationListener;
//import android.location.LocationManager;
//import android.os.Bundle;
//import android.widget.Toast;
//
//public class TestGpsActivity extends Activity 
//{
//	/** Called when the activity is first created. */
//
//	@Override
//	public void onCreate(Bundle savedInstanceState)
//	{
//		super.onCreate(savedInstanceState);
//		setContentView(R.layout.main);
//		
//		LocationManager milocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
//		LocationListener milocListener = new MiLocationListener();
//		milocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, milocListener);
//
//	}
//
//	public class MiLocationListener implements LocationListener
//	{
//		public void onLocationChanged(Location loc)
//		{
//			loc.getLatitude();
//			loc.getLongitude();
//			String coordenadas = "Mis coordenadas son: " + "Latitud = " + loc.getLatitude() + "Longitud = " + loc.getLongitude();
//			Toast.makeText( getApplicationContext(),coordenadas,Toast.LENGTH_LONG).show();
//		}
//
//		public void onProviderDisabled(String provider)
//		{
//			Toast.makeText( getApplicationContext(), "Gps Desactivado", Toast.LENGTH_SHORT ).show();
//		}
//
//		public void onProviderEnabled(String provider)
//		{
//			Toast.makeText( getApplicationContext(), "Gps Activo", Toast.LENGTH_SHORT ).show();
//		}
//
//		public void onStatusChanged(String provider, int status, Bundle extras)
//		{}
//	}
//}
